package com.kwedding.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.kwedding.bean.TB_Brand;

public interface TB_BrandMapper {

	TB_Brand selectByPrimaryKey(@Param("brandId") Long brandId);

	int insert(TB_Brand tb_Brand);

	List<TB_Brand> selectBrandList(@Param("status") Boolean status, @Param("searchName") String searchName,
			@Param("cityId") Long cityId);

	int updateSelectiveByPrimaryKey(TB_Brand tb_Brand);

	TB_Brand selectByNameAndCityId(@Param("cityId") Long cityId, @Param("brandName") String brandName);

	List<TB_Brand> selectBrandListByCityAndSorts(@Param("cityId") Long cityId, @Param("sortsId") Long sortsId);
}
